{% extends "model/generic.html" %}
{% block type_metadata %}
    <section >
    {% if nsc['dctype'].StillImage in rsrc.user_types %}
        <div class="clearfix">
            <img src="/image{{ rsrc.uid }}/full/!800,600/0/default.jpg"
                    alt="{{ value(rsrc, nsc['skos'].prefLabel) }}"/>
        </div>
        <a class="button" href="/image{{ rsrc.uid }}/full/full/0/default.jpg">Download Full Size</a>
    {% else %}
      {% set icon = value(rsrc, nsc['lii'].icon) %}
      {% if icon %}
        <div class="pref_image">
            <img src="/image{{ icon }}/full/!800,600/0/default.jpg" alt=/>
        </div>
      {% endif %}
        <a class="button" href="/content{{ rsrc.uid }}">Download File</a>
    {% endif %}
    </section>
{{ lit_field(value(rsrc, nsc['rdf'].type), 'Document Type') }}
{{ uri_field(inv_rel(rsrc, nsc['lii'].hasRepresentation), 'Representation Of') }}
{{ uri_field(inv_rel(rsrc, nsc['lii'].hasPreferredRepresentation), 'Preferred Representation Of') }}
{% endblock %}

